package me.lcc.demo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 演示
 */
@Controller
public class HelloController {
	@ResponseBody
	@GetMapping("/hello/animal/monkey")
	public String monkey() {
		return "Hello monkey";
	}
	@ResponseBody
	@GetMapping("/hello/fruit/apple")
	public String apple() {
		return "Hello apple";
	}
	@ResponseBody
	@GetMapping("/hello/baby")
	public String baby() {
		return "Hello baby";
	}
}
